<template>
  <div>  
    <div>
      <van-swipe class="!bg-[#39a9ed] !h-[46vh]" :autoplay="3000" indicator-color="white" lazy-render>
        <van-swipe-item class="relative overflow-hidden">
          <van-image width="100%" height="100%" fit="fill" :src="banner1" />
          <div class="z-10 absolute bottom-10 left-6 text-white">
            <div class="text-[12px] font-bold">
              {{ $t('forBetterLife') }}
            </div>
            <div class="text-[35px]">
              {{ $t('basicText.basicDec-1') }}
            </div>
            <div class="text-[14px] mt-8">
              {{ $t('basicText.basicDec-2') }}
            </div>
            <div class="text-[12px]">
              {{ $t('basicText.basicDec-3') }}
            </div>
          </div>
        </van-swipe-item>
      </van-swipe>
    </div>
    <div class="box-border p-5">
      <div class="text-[#828d97] text-[18px]">
        {{ $t('aboutDesc-1') }}	
      </div>
     <div class="mt-8">
        <van-button 
          icon-position="right" 
          icon="arrow" 
          round 
          block
          type="primary" 
        >
          {{ $t('aboutUS') }}
        </van-button>
     </div>
     <div class="mt-5">
      <van-button 
        icon-position="right" 
        icon="arrow" 
        round 
        block 
      >
        {{ $t('involved') }}
      </van-button>
     </div>
    </div>
    <div class="flex flex-col justify-start items-start gap-3 mt-6">
      <div class="bg-[#3b8cff] w-full box-border px-10 pt-10 pb-20 text-white text-[14px] relative overflow-hidden" v-for="item in list">
        <div>{{ item.title }}</div>
        <div class="mt-4 text-[28px] money before:absolute before:left-5 before:bottom-24 before:w-3 before:h-3 before:bg-[#24c8ce] before:rounded-xl">
          {{ item.money }}
        </div>
      </div>
    </div>
    <div class="box-border mx-6 my-10 text-[30px]">
      {{ $t('weDo') }}
    </div>
    <div>
      <div class="box-border px-8 py-8" v-for="item in 3">
        <div class="text-black text-[25px]">
          {{ $t('basicCard.basicTitle') }}
        </div>
        <div class="mt-6 mb-4 text-[#24c8ce] border-b-[2px] border-b-[#24c8ce] w-fit text-[14px]">
          {{ $t('basicCard.basicSubTitle') }}
        </div>
        <div class="text-[#8e9aa3] text-[10px]">
          {{ $t('basicCard.basicDesc') }}
        </div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import banner1 from "@/assets/images/banner-1.jpg"

import { useI18n } from 'vue-i18n'

const { t } =  useI18n({ useScope: 'global' })

const list = [
  { title: t('indexList.title-1'), money: '446,000,000' },
  { title: t('indexList.title-2'), money: '45,578,976,000' },
  { title: t('indexList.title-3'), money: '128,000,000,000' },
  { title: t('indexList.title-4'), money: '93,000,000' },
  { title: t('indexList.title-5'), money: '14,000' },
]
</script>

<style lang="less" scoped>
.money {
  font-family: "\5FAE\8F6F\96C5\9ED1", Georgia, Serif;
}
</style>
